<template>
    <div></div>
</template>

<script>
    export default {
        name: "chart_test",
        data () {
            return {
                queryJson: "{\"messures\":[{\"event_name\":\"$Anything\",\"aggregator\":\"general\",\"name\":\"任意事件的总次数\"},{\"event_name\":\"$WebStay\",\"aggregator\":\"general\",\"name\":\"Web 视区停留的总次数\"},{\"event_name\":\"visit_xn\",\"aggregator\":\"general\",\"name\":\"全站流量的总次数\"}],\"from_date\":\"2021-05-07\",\"to_date\":\"2021-05-18\",\"unit\":\"day\",\"by_fields\":[\"event.$Anything.$resume_from_background\",\"event.$Anything.$event_duration\"],\"detail_and_rollup\":true,\"enable_detail_follow_rollup_by_values_rank\":true,\"sub_task_type\":\"SEGMENTATION\",\"time_zone_mode\":\"\",\"server_time_zone\":\"\",\"filter\":{\"conditions\":[{\"field\":\"event.$Anything.$resume_from_background\",\"function\":\"isTrue\",\"params\":[],\"$$render_index\":2}]},\"bucket_params\":{},\"compare_from_date\":null,\"compare_to_date\":null,\"bookmarkid\":55960,\"request_id\":\"1621321356771:534979\",\"use_cache\":true,\"dashboard_id\":12714}",
                lineData: [{
                    "detailResult":{
                        "by_fields":[
                            "event.$Anything.$resume_from_background",
                            "event.$Anything.$event_duration"
                        ],
                        "series":[
                            "2021-05-07 00:00:00",
                            "2021-05-08 00:00:00",
                            "2021-05-09 00:00:00",
                            "2021-05-10 00:00:00",
                            "2021-05-11 00:00:00",
                            "2021-05-12 00:00:00",
                            "2021-05-13 00:00:00",
                            "2021-05-14 00:00:00",
                            "2021-05-15 00:00:00",
                            "2021-05-16 00:00:00",
                            "2021-05-17 00:00:00",
                            "2021-05-18 00:00:00"
                        ],
                        "rows":[
                            {
                                "values":[
                                    [
                                        "11901.0",
                                        "94.0",
                                        "515.0"
                                    ],
                                    [
                                        "11088.0",
                                        "96.0",
                                        "485.0"
                                    ],
                                    [
                                        "11806.0",
                                        "104.0",
                                        "496.0"
                                    ],
                                    [
                                        "11912.0",
                                        "101.0",
                                        "508.0"
                                    ],
                                    [
                                        "11871.0",
                                        "96.0",
                                        "508.0"
                                    ],
                                    [
                                        "11302.0",
                                        "79.0",
                                        "508.0"
                                    ],
                                    [
                                        "11805.0",
                                        "101.0",
                                        "481.0"
                                    ],
                                    [
                                        "12008.0",
                                        "103.0",
                                        "493.0"
                                    ],
                                    [
                                        "12133.0",
                                        "106.0",
                                        "528.0"
                                    ],
                                    [
                                        "11433.0",
                                        "88.0",
                                        "477.0"
                                    ],
                                    [
                                        "11813.0",
                                        "106.0",
                                        "476.0"
                                    ],
                                    [
                                        "11331.0",
                                        "110.0",
                                        "477.0"
                                    ]
                                ],
                                "by_values":[
                                    "1.0",
                                    "300~400"
                                ]
                            },
                            {
                                "values":[
                                    [
                                        "11896.0",
                                        "100.0",
                                        "498.0"
                                    ],
                                    [
                                        "11093.0",
                                        "82.0",
                                        "481.0"
                                    ],
                                    [
                                        "12145.0",
                                        "92.0",
                                        "481.0"
                                    ],
                                    [
                                        "11843.0",
                                        "96.0",
                                        "488.0"
                                    ],
                                    [
                                        "11681.0",
                                        "109.0",
                                        "498.0"
                                    ],
                                    [
                                        "11324.0",
                                        "93.0",
                                        "478.0"
                                    ],
                                    [
                                        "12112.0",
                                        "100.0",
                                        "494.0"
                                    ],
                                    [
                                        "11889.0",
                                        "94.0",
                                        "524.0"
                                    ],
                                    [
                                        "11993.0",
                                        "108.0",
                                        "498.0"
                                    ],
                                    [
                                        "11253.0",
                                        "94.0",
                                        "507.0"
                                    ],
                                    [
                                        "11726.0",
                                        "76.0",
                                        "500.0"
                                    ],
                                    [
                                        "11244.0",
                                        "82.0",
                                        "476.0"
                                    ]
                                ],
                                "by_values":[
                                    "1.0",
                                    "400~500"
                                ]
                            },
                            {
                                "values":[
                                    [
                                        "11813.0",
                                        "102.0",
                                        "475.0"
                                    ],
                                    [
                                        "10955.0",
                                        "97.0",
                                        "474.0"
                                    ],
                                    [
                                        "11864.0",
                                        "104.0",
                                        "501.0"
                                    ],
                                    [
                                        "11781.0",
                                        "95.0",
                                        "456.0"
                                    ],
                                    [
                                        "11853.0",
                                        "93.0",
                                        "478.0"
                                    ],
                                    [
                                        "11316.0",
                                        "93.0",
                                        "512.0"
                                    ],
                                    [
                                        "11821.0",
                                        "110.0",
                                        "500.0"
                                    ],
                                    [
                                        "12019.0",
                                        "108.0",
                                        "504.0"
                                    ],
                                    [
                                        "12139.0",
                                        "113.0",
                                        "525.0"
                                    ],
                                    [
                                        "11287.0",
                                        "104.0",
                                        "513.0"
                                    ],
                                    [
                                        "11805.0",
                                        "105.0",
                                        "490.0"
                                    ],
                                    [
                                        "11515.0",
                                        "98.0",
                                        "489.0"
                                    ]
                                ],
                                "by_values":[
                                    "1.0",
                                    "500~600"
                                ]
                            },
                            {
                                "values":[
                                    [
                                        "11783.0",
                                        "97.0",
                                        "469.0"
                                    ],
                                    [
                                        "10884.0",
                                        "84.0",
                                        "470.0"
                                    ],
                                    [
                                        "12029.0",
                                        "94.0",
                                        "491.0"
                                    ],
                                    [
                                        "11816.0",
                                        "118.0",
                                        "525.0"
                                    ],
                                    [
                                        "11661.0",
                                        "99.0",
                                        "493.0"
                                    ],
                                    [
                                        "11156.0",
                                        "89.0",
                                        "459.0"
                                    ],
                                    [
                                        "12106.0",
                                        "95.0",
                                        "483.0"
                                    ],
                                    [
                                        "11965.0",
                                        "101.0",
                                        "495.0"
                                    ],
                                    [
                                        "12109.0",
                                        "98.0",
                                        "494.0"
                                    ],
                                    [
                                        "11489.0",
                                        "107.0",
                                        "464.0"
                                    ],
                                    [
                                        "11741.0",
                                        "100.0",
                                        "484.0"
                                    ],
                                    [
                                        "11301.0",
                                        "86.0",
                                        "489.0"
                                    ]
                                ],
                                "by_values":[
                                    "1.0",
                                    "200~300"
                                ]
                            },
                            {
                                "values":[
                                    [
                                        "12055.0",
                                        "100.0",
                                        "512.0"
                                    ],
                                    [
                                        "10913.0",
                                        "88.0",
                                        "434.0"
                                    ],
                                    [
                                        "12046.0",
                                        "88.0",
                                        "494.0"
                                    ],
                                    [
                                        "11929.0",
                                        "104.0",
                                        "493.0"
                                    ],
                                    [
                                        "11607.0",
                                        "91.0",
                                        "452.0"
                                    ],
                                    [
                                        "11132.0",
                                        "89.0",
                                        "480.0"
                                    ],
                                    [
                                        "12086.0",
                                        "114.0",
                                        "508.0"
                                    ],
                                    [
                                        "12029.0",
                                        "93.0",
                                        "482.0"
                                    ],
                                    [
                                        "11844.0",
                                        "93.0",
                                        "485.0"
                                    ],
                                    [
                                        "11117.0",
                                        "94.0",
                                        "459.0"
                                    ],
                                    [
                                        "11739.0",
                                        "102.0",
                                        "488.0"
                                    ],
                                    [
                                        "11252.0",
                                        "93.0",
                                        "465.0"
                                    ]
                                ],
                                "by_values":[
                                    "1.0",
                                    "100~200"
                                ]
                            },
                            {
                                "values":[
                                    [
                                        "4853.0",
                                        "102.0",
                                        "204.0"
                                    ],
                                    [
                                        "4527.0",
                                        "91.0",
                                        "187.0"
                                    ],
                                    [
                                        "4984.0",
                                        "97.0",
                                        "219.0"
                                    ],
                                    [
                                        "4810.0",
                                        "95.0",
                                        "212.0"
                                    ],
                                    [
                                        "4749.0",
                                        "92.0",
                                        "212.0"
                                    ],
                                    [
                                        "4690.0",
                                        "93.0",
                                        "167.0"
                                    ],
                                    [
                                        "4864.0",
                                        "82.0",
                                        "204.0"
                                    ],
                                    [
                                        "4964.0",
                                        "74.0",
                                        "206.0"
                                    ],
                                    [
                                        "4997.0",
                                        "78.0",
                                        "212.0"
                                    ],
                                    [
                                        "4895.0",
                                        "106.0",
                                        "210.0"
                                    ],
                                    [
                                        "4705.0",
                                        "83.0",
                                        "186.0"
                                    ],
                                    [
                                        "4691.0",
                                        "91.0",
                                        "207.0"
                                    ]
                                ],
                                "by_values":[
                                    "1.0",
                                    "0~100"
                                ]
                            },
                            {
                                "values":[
                                    [
                                        "226.0",
                                        "111.0",
                                        "0.0"
                                    ],
                                    [
                                        "193.0",
                                        "92.0",
                                        "0.0"
                                    ],
                                    [
                                        "219.0",
                                        "102.0",
                                        "0.0"
                                    ],
                                    [
                                        "234.0",
                                        "119.0",
                                        "0.0"
                                    ],
                                    [
                                        "209.0",
                                        "107.0",
                                        "0.0"
                                    ],
                                    [
                                        "223.0",
                                        "112.0",
                                        "0.0"
                                    ],
                                    [
                                        "238.0",
                                        "112.0",
                                        "0.0"
                                    ],
                                    [
                                        "215.0",
                                        "106.0",
                                        "0.0"
                                    ],
                                    [
                                        "216.0",
                                        "96.0",
                                        "0.0"
                                    ],
                                    [
                                        "208.0",
                                        "110.0",
                                        "0.0"
                                    ],
                                    [
                                        "191.0",
                                        "91.0",
                                        "0.0"
                                    ],
                                    [
                                        "207.0",
                                        "107.0",
                                        "0.0"
                                    ]
                                ],
                                "by_values":[
                                    "1.0",
                                    "1000~1100"
                                ]
                            },
                            {
                                "values":[
                                    [
                                        "213.0",
                                        "105.0",
                                        "0.0"
                                    ],
                                    [
                                        "180.0",
                                        "94.0",
                                        "0.0"
                                    ],
                                    [
                                        "210.0",
                                        "118.0",
                                        "0.0"
                                    ],
                                    [
                                        "193.0",
                                        "95.0",
                                        "0.0"
                                    ],
                                    [
                                        "215.0",
                                        "109.0",
                                        "0.0"
                                    ],
                                    [
                                        "205.0",
                                        "107.0",
                                        "0.0"
                                    ],
                                    [
                                        "204.0",
                                        "96.0",
                                        "0.0"
                                    ],
                                    [
                                        "221.0",
                                        "85.0",
                                        "0.0"
                                    ],
                                    [
                                        "244.0",
                                        "112.0",
                                        "0.0"
                                    ],
                                    [
                                        "229.0",
                                        "94.0",
                                        "0.0"
                                    ],
                                    [
                                        "221.0",
                                        "105.0",
                                        "0.0"
                                    ],
                                    [
                                        "219.0",
                                        "111.0",
                                        "0.0"
                                    ]
                                ],
                                "by_values":[
                                    "1.0",
                                    "700~800"
                                ]
                            },
                            {
                                "values":[
                                    [
                                        "226.0",
                                        "100.0",
                                        "0.0"
                                    ],
                                    [
                                        "203.0",
                                        "96.0",
                                        "0.0"
                                    ],
                                    [
                                        "233.0",
                                        "115.0",
                                        "0.0"
                                    ],
                                    [
                                        "212.0",
                                        "106.0",
                                        "0.0"
                                    ],
                                    [
                                        "215.0",
                                        "106.0",
                                        "0.0"
                                    ],
                                    [
                                        "225.0",
                                        "114.0",
                                        "0.0"
                                    ],
                                    [
                                        "191.0",
                                        "80.0",
                                        "0.0"
                                    ],
                                    [
                                        "221.0",
                                        "106.0",
                                        "0.0"
                                    ],
                                    [
                                        "199.0",
                                        "99.0",
                                        "0.0"
                                    ],
                                    [
                                        "202.0",
                                        "98.0",
                                        "0.0"
                                    ],
                                    [
                                        "218.0",
                                        "100.0",
                                        "0.0"
                                    ],
                                    [
                                        "201.0",
                                        "85.0",
                                        "0.0"
                                    ]
                                ],
                                "by_values":[
                                    "1.0",
                                    "800~900"
                                ]
                            },
                            {
                                "values":[
                                    [
                                        "213.0",
                                        "93.0",
                                        "0.0"
                                    ],
                                    [
                                        "216.0",
                                        "103.0",
                                        "0.0"
                                    ],
                                    [
                                        "190.0",
                                        "79.0",
                                        "0.0"
                                    ],
                                    [
                                        "229.0",
                                        "100.0",
                                        "0.0"
                                    ],
                                    [
                                        "204.0",
                                        "86.0",
                                        "0.0"
                                    ],
                                    [
                                        "201.0",
                                        "87.0",
                                        "0.0"
                                    ],
                                    [
                                        "240.0",
                                        "122.0",
                                        "0.0"
                                    ],
                                    [
                                        "229.0",
                                        "119.0",
                                        "0.0"
                                    ],
                                    [
                                        "206.0",
                                        "90.0",
                                        "0.0"
                                    ],
                                    [
                                        "185.0",
                                        "84.0",
                                        "0.0"
                                    ],
                                    [
                                        "201.0",
                                        "83.0",
                                        "0.0"
                                    ],
                                    [
                                        "210.0",
                                        "99.0",
                                        "0.0"
                                    ]
                                ],
                                "by_values":[
                                    "1.0",
                                    "1100~1200"
                                ]
                            },
                            {
                                "values":[
                                    [
                                        "192.0",
                                        "93.0",
                                        "0.0"
                                    ],
                                    [
                                        "219.0",
                                        "101.0",
                                        "0.0"
                                    ],
                                    [
                                        "200.0",
                                        "100.0",
                                        "0.0"
                                    ],
                                    [
                                        "198.0",
                                        "82.0",
                                        "0.0"
                                    ],
                                    [
                                        "203.0",
                                        "99.0",
                                        "0.0"
                                    ],
                                    [
                                        "207.0",
                                        "88.0",
                                        "0.0"
                                    ],
                                    [
                                        "207.0",
                                        "106.0",
                                        "0.0"
                                    ],
                                    [
                                        "216.0",
                                        "114.0",
                                        "0.0"
                                    ],
                                    [
                                        "227.0",
                                        "109.0",
                                        "0.0"
                                    ],
                                    [
                                        "197.0",
                                        "103.0",
                                        "0.0"
                                    ],
                                    [
                                        "208.0",
                                        "100.0",
                                        "0.0"
                                    ],
                                    [
                                        "190.0",
                                        "89.0",
                                        "0.0"
                                    ]
                                ],
                                "by_values":[
                                    "1.0",
                                    "600~700"
                                ]
                            },
                            {
                                "values":[
                                    [
                                        "192.0",
                                        "82.0",
                                        "0.0"
                                    ],
                                    [
                                        "196.0",
                                        "92.0",
                                        "0.0"
                                    ],
                                    [
                                        "204.0",
                                        "104.0",
                                        "0.0"
                                    ],
                                    [
                                        "197.0",
                                        "91.0",
                                        "0.0"
                                    ],
                                    [
                                        "173.0",
                                        "86.0",
                                        "0.0"
                                    ],
                                    [
                                        "194.0",
                                        "87.0",
                                        "0.0"
                                    ],
                                    [
                                        "209.0",
                                        "85.0",
                                        "0.0"
                                    ],
                                    [
                                        "215.0",
                                        "98.0",
                                        "0.0"
                                    ],
                                    [
                                        "224.0",
                                        "112.0",
                                        "0.0"
                                    ],
                                    [
                                        "188.0",
                                        "84.0",
                                        "0.0"
                                    ],
                                    [
                                        "221.0",
                                        "101.0",
                                        "0.0"
                                    ],
                                    [
                                        "228.0",
                                        "101.0",
                                        "0.0"
                                    ]
                                ],
                                "by_values":[
                                    "1.0",
                                    "900~1000"
                                ]
                            }
                        ],
                        "num_rows":"12.0",
                        "total_rows":"12.0",
                        "approx":false,
                        "download_truncated":false,
                        "truncated":false
                    },
                    "rollup_result":{
                        "by_fields":[
                            "event.$Anything.$resume_from_background",
                            "event.$Anything.$event_duration"
                        ],
                        "series":[
                            "2021-05-07 00:00:00"
                        ],
                        "rows":[
                            {
                                "values":[
                                    [
                                        "140403.0",
                                        "1184.0",
                                        "5952.0"
                                    ]
                                ],
                                "by_values":[
                                    "1.0",
                                    "300~400"
                                ]
                            },
                            {
                                "values":[
                                    [
                                        "140199.0",
                                        "1126.0",
                                        "5923.0"
                                    ]
                                ],
                                "by_values":[
                                    "1.0",
                                    "400~500"
                                ]
                            },
                            {
                                "values":[
                                    [
                                        "140168.0",
                                        "1222.0",
                                        "5917.0"
                                    ]
                                ],
                                "by_values":[
                                    "1.0",
                                    "500~600"
                                ]
                            },
                            {
                                "values":[
                                    [
                                        "140040.0",
                                        "1168.0",
                                        "5816.0"
                                    ]
                                ],
                                "by_values":[
                                    "1.0",
                                    "200~300"
                                ]
                            },
                            {
                                "values":[
                                    [
                                        "139749.0",
                                        "1149.0",
                                        "5752.0"
                                    ]
                                ],
                                "by_values":[
                                    "1.0",
                                    "100~200"
                                ]
                            },
                            {
                                "values":[
                                    [
                                        "57729.0",
                                        "1084.0",
                                        "2426.0"
                                    ]
                                ],
                                "by_values":[
                                    "1.0",
                                    "0~100"
                                ]
                            },
                            {
                                "values":[
                                    [
                                        "2579.0",
                                        "1265.0",
                                        "0.0"
                                    ]
                                ],
                                "by_values":[
                                    "1.0",
                                    "1000~1100"
                                ]
                            },
                            {
                                "values":[
                                    [
                                        "2554.0",
                                        "1231.0",
                                        "0.0"
                                    ]
                                ],
                                "by_values":[
                                    "1.0",
                                    "700~800"
                                ]
                            },
                            {
                                "values":[
                                    [
                                        "2546.0",
                                        "1205.0",
                                        "0.0"
                                    ]
                                ],
                                "by_values":[
                                    "1.0",
                                    "800~900"
                                ]
                            },
                            {
                                "values":[
                                    [
                                        "2524.0",
                                        "1145.0",
                                        "0.0"
                                    ]
                                ],
                                "by_values":[
                                    "1.0",
                                    "1100~1200"
                                ]
                            },
                            {
                                "values":[
                                    [
                                        "2464.0",
                                        "1184.0",
                                        "0.0"
                                    ]
                                ],
                                "by_values":[
                                    "1.0",
                                    "600~700"
                                ]
                            },
                            {
                                "values":[
                                    [
                                        "2441.0",
                                        "1123.0",
                                        "0.0"
                                    ]
                                ],
                                "by_values":[
                                    "1.0",
                                    "900~1000"
                                ]
                            }
                        ],
                        "num_rows":"12.0",
                        "total_rows":"12.0",
                        "approx":false,
                        "download_truncated":false,
                        "truncated":false
                    },
                    "download_truncated":false,
                    "report_update_time":"2021-05-18 15:02:37.732",
                    "data_update_time":"2021-05-18 14:41:49.000",
                    "data_sufficient_update_time":"2021-05-18 14:41:49.000",
                    "truncated":false,
                    "sampling_factor":"64.0",
                    "is_done":true
                },],
                tableInitData: [
                    {
                        "detailResult":{
                            "series":[
                                "2021-05-01 00:00:00",
                                "2021-05-02 00:00:00",
                                "2021-05-03 00:00:00",
                                "2021-05-04 00:00:00",
                                "2021-05-05 00:00:00",
                                "2021-05-06 00:00:00",
                                "2021-05-07 00:00:00",
                                "2021-05-08 00:00:00",
                                "2021-05-09 00:00:00"
                            ],
                            "rows":[
                                {
                                    "values":[
                                        [
                                            "224042.0"
                                        ],
                                        [
                                            "220697.0"
                                        ],
                                        [
                                            "226274.0"
                                        ],
                                        [
                                            "227706.0"
                                        ],
                                        [
                                            "227366.0"
                                        ],
                                        [
                                            "93603.0"
                                        ],
                                        [
                                            "94649.0"
                                        ],
                                        [
                                            "88687.0"
                                        ],
                                        [
                                            "95949.0"
                                        ]
                                    ],
                                    "by_values":[

                                    ]
                                }
                            ],
                            "num_rows":"1.0",
                            "total_rows":"1.0",
                            "approx":false,
                            "download_truncated":false,
                            "truncated":false
                        },
                        "rollup_result":{
                            "series":[
                                "2021-05-01 00:00:00"
                            ],
                            "rows":[
                                {
                                    "values":[
                                        [
                                            "1498973.0"
                                        ]
                                    ],
                                    "by_values":[

                                    ]
                                }
                            ],
                            "num_rows":"1.0",
                            "total_rows":"1.0",
                            "approx":false,
                            "download_truncated":false,
                            "truncated":false
                        },
                        "download_truncated":false,
                        "report_update_time":"2021-05-19 12:57:21.698",
                        "data_update_time":"2021-05-09 23:41:40.000",
                        "data_sufficient_update_time":"2021-05-09 23:41:40.000",
                        "truncated":false,
                        "sampling_factor":"64.0",
                        "is_done":true
                    }
                ],
                tableCompareData: [
                    {
                        "detailResult":{
                            "by_fields":[
                                "event.$Anything.$event_duration"
                            ],
                            "series":[
                                "2021-05-01 00:00:00",
                                "2021-05-02 00:00:00",
                                "2021-05-03 00:00:00",
                                "2021-05-04 00:00:00",
                                "2021-05-05 00:00:00",
                                "2021-05-06 00:00:00",
                                "2021-05-07 00:00:00",
                                "2021-05-08 00:00:00",
                                "2021-05-09 00:00:00",
                                "2021-05-10 00:00:00",
                                "2021-05-11 00:00:00",
                                "2021-05-12 00:00:00",
                                "2021-05-13 00:00:00",
                                "2021-05-14 00:00:00",
                                "2021-05-15 00:00:00",
                                "2021-05-16 00:00:00",
                                "2021-05-17 00:00:00",
                                "2021-05-18 00:00:00",
                                "2021-05-19 00:00:00"
                            ],
                            "rows":[
                                {
                                    "values":[
                                        [
                                            40260,
                                            27968
                                        ],
                                        [
                                            39822,
                                            27727
                                        ],
                                        [
                                            40845,
                                            29060
                                        ],
                                        [
                                            41003,
                                            28402
                                        ],
                                        [
                                            41194,
                                            29068
                                        ],
                                        [
                                            16578,
                                            11683
                                        ],
                                        [
                                            16816,
                                            11901
                                        ],
                                        [
                                            15859,
                                            11088
                                        ],
                                        [
                                            16751,
                                            11806
                                        ],
                                        [
                                            17235,
                                            11912
                                        ],
                                        [
                                            16728,
                                            11871
                                        ],
                                        [
                                            16719,
                                            11302
                                        ],
                                        [
                                            16925,
                                            11805
                                        ],
                                        [
                                            17017,
                                            12008
                                        ],
                                        [
                                            17059,
                                            12133
                                        ],
                                        [
                                            16329,
                                            11433
                                        ],
                                        [
                                            16740,
                                            11813
                                        ],
                                        [
                                            15785,
                                            11331
                                        ],
                                        [
                                            16707,
                                            11651
                                        ]
                                    ],
                                    "by_values":[
                                        "300~400"
                                    ]
                                },
                                {
                                    "values":[
                                        [
                                            40470,
                                            28132
                                        ],
                                        [
                                            39707,
                                            27706
                                        ],
                                        [
                                            40508,
                                            28652
                                        ],
                                        [
                                            41209,
                                            28602
                                        ],
                                        [
                                            41085,
                                            29104
                                        ],
                                        [
                                            16561,
                                            11490
                                        ],
                                        [
                                            16662,
                                            11896
                                        ],
                                        [
                                            15734,
                                            11093
                                        ],
                                        [
                                            17085,
                                            12145
                                        ],
                                        [
                                            17011,
                                            11843
                                        ],
                                        [
                                            16792,
                                            11681
                                        ],
                                        [
                                            16882,
                                            11324
                                        ],
                                        [
                                            17162,
                                            12112
                                        ],
                                        [
                                            16886,
                                            11889
                                        ],
                                        [
                                            16841,
                                            11993
                                        ],
                                        [
                                            16097,
                                            11253
                                        ],
                                        [
                                            16656,
                                            11726
                                        ],
                                        [
                                            15707,
                                            11244
                                        ],
                                        [
                                            16808,
                                            11604
                                        ]
                                    ],
                                    "by_values":[
                                        "400~500"
                                    ]
                                },
                                {
                                    "values":[
                                        [
                                            40473,
                                            28256
                                        ],
                                        [
                                            40142,
                                            28250
                                        ],
                                        [
                                            40753,
                                            28704
                                        ],
                                        [
                                            40878,
                                            28397
                                        ],
                                        [
                                            40894,
                                            28809
                                        ],
                                        [
                                            16405,
                                            11435
                                        ],
                                        [
                                            16523,
                                            11783
                                        ],
                                        [
                                            15576,
                                            10884
                                        ],
                                        [
                                            16951,
                                            12029
                                        ],
                                        [
                                            17056,
                                            11816
                                        ],
                                        [
                                            16749,
                                            11661
                                        ],
                                        [
                                            16686,
                                            11156
                                        ],
                                        [
                                            17221,
                                            12106
                                        ],
                                        [
                                            16904,
                                            11965
                                        ],
                                        [
                                            17096,
                                            12109
                                        ],
                                        [
                                            16407,
                                            11489
                                        ],
                                        [
                                            16659,
                                            11741
                                        ],
                                        [
                                            15739,
                                            11301
                                        ],
                                        [
                                            16709,
                                            11668
                                        ]
                                    ],
                                    "by_values":[
                                        "200~300"
                                    ]
                                },
                                {
                                    "values":[
                                        [
                                            40407,
                                            28108
                                        ],
                                        [
                                            39630,
                                            27621
                                        ],
                                        [
                                            40871,
                                            28851
                                        ],
                                        [
                                            40923,
                                            28508
                                        ],
                                        [
                                            40803,
                                            28867
                                        ],
                                        [
                                            16480,
                                            11476
                                        ],
                                        [
                                            16691,
                                            11813
                                        ],
                                        [
                                            15511,
                                            10955
                                        ],
                                        [
                                            16823,
                                            11864
                                        ],
                                        [
                                            17023,
                                            11781
                                        ],
                                        [
                                            16788,
                                            11853
                                        ],
                                        [
                                            16731,
                                            11316
                                        ],
                                        [
                                            17099,
                                            11821
                                        ],
                                        [
                                            16946,
                                            12019
                                        ],
                                        [
                                            17014,
                                            12139
                                        ],
                                        [
                                            16146,
                                            11287
                                        ],
                                        [
                                            16650,
                                            11805
                                        ],
                                        [
                                            16023,
                                            11515
                                        ],
                                        [
                                            16918,
                                            11803
                                        ]
                                    ],
                                    "by_values":[
                                        "500~600"
                                    ]
                                },
                                {
                                    "values":[
                                        [
                                            40265,
                                            28002
                                        ],
                                        [
                                            39664,
                                            27872
                                        ],
                                        [
                                            41058,
                                            29093
                                        ],
                                        [
                                            41177,
                                            28554
                                        ],
                                        [
                                            40922,
                                            28898
                                        ],
                                        [
                                            16508,
                                            11458
                                        ],
                                        [
                                            16812,
                                            12055
                                        ],
                                        [
                                            15352,
                                            10913
                                        ],
                                        [
                                            17073,
                                            12046
                                        ],
                                        [
                                            17163,
                                            11929
                                        ],
                                        [
                                            16709,
                                            11607
                                        ],
                                        [
                                            16660,
                                            11132
                                        ],
                                        [
                                            17264,
                                            12086
                                        ],
                                        [
                                            17036,
                                            12029
                                        ],
                                        [
                                            16632,
                                            11844
                                        ],
                                        [
                                            15881,
                                            11117
                                        ],
                                        [
                                            16582,
                                            11739
                                        ],
                                        [
                                            15785,
                                            11252
                                        ],
                                        [
                                            16846,
                                            11674
                                        ]
                                    ],
                                    "by_values":[
                                        "100~200"
                                    ]
                                },
                                {
                                    "values":[
                                        [
                                            16515,
                                            11404
                                        ],
                                        [
                                            16055,
                                            11172
                                        ],
                                        [
                                            16453,
                                            11677
                                        ],
                                        [
                                            16746,
                                            11690
                                        ],
                                        [
                                            16706,
                                            11774
                                        ],
                                        [
                                            6750,
                                            4663
                                        ],
                                        [
                                            6824,
                                            4853
                                        ],
                                        [
                                            6433,
                                            4527
                                        ],
                                        [
                                            6962,
                                            4984
                                        ],
                                        [
                                            6956,
                                            4810
                                        ],
                                        [
                                            6818,
                                            4749
                                        ],
                                        [
                                            6958,
                                            4690
                                        ],
                                        [
                                            6933,
                                            4864
                                        ],
                                        [
                                            7033,
                                            4964
                                        ],
                                        [
                                            7041,
                                            4997
                                        ],
                                        [
                                            6864,
                                            4895
                                        ],
                                        [
                                            6762,
                                            4705
                                        ],
                                        [
                                            6480,
                                            4691
                                        ],
                                        [
                                            7035,
                                            4901
                                        ]
                                    ],
                                    "by_values":[
                                        "0~100"
                                    ]
                                },
                                {
                                    "values":[
                                        [
                                            1800,
                                            0
                                        ],
                                        [
                                            1800,
                                            0
                                        ],
                                        [
                                            1800,
                                            0
                                        ],
                                        [
                                            1800,
                                            0
                                        ],
                                        [
                                            1800,
                                            0
                                        ],
                                        [
                                            1800,
                                            0
                                        ],
                                        [
                                            1800,
                                            0
                                        ],
                                        [
                                            1800,
                                            0
                                        ],
                                        [
                                            1800,
                                            0
                                        ],
                                        [
                                            1800,
                                            0
                                        ],
                                        [
                                            1800,
                                            0
                                        ],
                                        [
                                            1800,
                                            0
                                        ],
                                        [
                                            1800,
                                            0
                                        ],
                                        [
                                            1800,
                                            0
                                        ],
                                        [
                                            1800,
                                            0
                                        ],
                                        [
                                            1800,
                                            0
                                        ],
                                        [
                                            1800,
                                            0
                                        ],
                                        [
                                            1800,
                                            0
                                        ],
                                        [
                                            1800,
                                            0
                                        ]
                                    ],
                                    "by_values":[
                                        "5000~INF"
                                    ]
                                },
                                {
                                    "values":[
                                        [
                                            719,
                                            0
                                        ],
                                        [
                                            720,
                                            0
                                        ],
                                        [
                                            720,
                                            0
                                        ],
                                        [
                                            719,
                                            0
                                        ],
                                        [
                                            720,
                                            0
                                        ],
                                        [
                                            720,
                                            0
                                        ],
                                        [
                                            720,
                                            0
                                        ],
                                        [
                                            720,
                                            0
                                        ],
                                        [
                                            720,
                                            0
                                        ],
                                        [
                                            720,
                                            0
                                        ],
                                        [
                                            719,
                                            0
                                        ],
                                        [
                                            719,
                                            0
                                        ],
                                        [
                                            722,
                                            0
                                        ],
                                        [
                                            720,
                                            0
                                        ],
                                        [
                                            720,
                                            0
                                        ],
                                        [
                                            720,
                                            0
                                        ],
                                        [
                                            720,
                                            0
                                        ],
                                        [
                                            720,
                                            0
                                        ],
                                        [
                                            731,
                                            0
                                        ]
                                    ],
                                    "by_values":[
                                        null
                                    ]
                                },
                                {
                                    "values":[
                                        [
                                            502,
                                            340
                                        ],
                                        [
                                            546,
                                            389
                                        ],
                                        [
                                            551,
                                            406
                                        ],
                                        [
                                            545,
                                            379
                                        ],
                                        [
                                            527,
                                            379
                                        ],
                                        [
                                            297,
                                            206
                                        ],
                                        [
                                            304,
                                            213
                                        ],
                                        [
                                            275,
                                            180
                                        ],
                                        [
                                            290,
                                            210
                                        ],
                                        [
                                            300,
                                            193
                                        ],
                                        [
                                            298,
                                            215
                                        ],
                                        [
                                            316,
                                            205
                                        ],
                                        [
                                            299,
                                            204
                                        ],
                                        [
                                            298,
                                            221
                                        ],
                                        [
                                            339,
                                            244
                                        ],
                                        [
                                            328,
                                            229
                                        ],
                                        [
                                            322,
                                            221
                                        ],
                                        [
                                            305,
                                            219
                                        ],
                                        [
                                            320,
                                            235
                                        ]
                                    ],
                                    "by_values":[
                                        "700~800"
                                    ]
                                },
                                {
                                    "values":[
                                        [
                                            522,
                                            344
                                        ],
                                        [
                                            513,
                                            362
                                        ],
                                        [
                                            551,
                                            384
                                        ],
                                        [
                                            550,
                                            385
                                        ],
                                        [
                                            537,
                                            396
                                        ],
                                        [
                                            327,
                                            229
                                        ],
                                        [
                                            331,
                                            226
                                        ],
                                        [
                                            282,
                                            203
                                        ],
                                        [
                                            326,
                                            233
                                        ],
                                        [
                                            307,
                                            212
                                        ],
                                        [
                                            302,
                                            215
                                        ],
                                        [
                                            329,
                                            225
                                        ],
                                        [
                                            280,
                                            191
                                        ],
                                        [
                                            321,
                                            221
                                        ],
                                        [
                                            277,
                                            199
                                        ],
                                        [
                                            288,
                                            202
                                        ],
                                        [
                                            308,
                                            218
                                        ],
                                        [
                                            271,
                                            201
                                        ],
                                        [
                                            309,
                                            205
                                        ]
                                    ],
                                    "by_values":[
                                        "800~900"
                                    ]
                                },
                                {
                                    "values":[
                                        [
                                            534,
                                            380
                                        ],
                                        [
                                            547,
                                            382
                                        ],
                                        [
                                            545,
                                            402
                                        ],
                                        [
                                            528,
                                            363
                                        ],
                                        [
                                            554,
                                            396
                                        ],
                                        [
                                            299,
                                            198
                                        ],
                                        [
                                            301,
                                            226
                                        ],
                                        [
                                            270,
                                            193
                                        ],
                                        [
                                            322,
                                            219
                                        ],
                                        [
                                            329,
                                            234
                                        ],
                                        [
                                            290,
                                            209
                                        ],
                                        [
                                            302,
                                            223
                                        ],
                                        [
                                            332,
                                            238
                                        ],
                                        [
                                            307,
                                            215
                                        ],
                                        [
                                            303,
                                            216
                                        ],
                                        [
                                            307,
                                            208
                                        ],
                                        [
                                            273,
                                            191
                                        ],
                                        [
                                            287,
                                            207
                                        ],
                                        [
                                            293,
                                            206
                                        ]
                                    ],
                                    "by_values":[
                                        "1000~1100"
                                    ]
                                },
                                {
                                    "values":[
                                        [
                                            527,
                                            376
                                        ],
                                        [
                                            505,
                                            344
                                        ],
                                        [
                                            534,
                                            381
                                        ],
                                        [
                                            545,
                                            402
                                        ],
                                        [
                                            550,
                                            379
                                        ],
                                        [
                                            289,
                                            201
                                        ],
                                        [
                                            304,
                                            213
                                        ],
                                        [
                                            291,
                                            216
                                        ],
                                        [
                                            289,
                                            190
                                        ],
                                        [
                                            325,
                                            229
                                        ],
                                        [
                                            300,
                                            204
                                        ],
                                        [
                                            310,
                                            201
                                        ],
                                        [
                                            329,
                                            240
                                        ],
                                        [
                                            342,
                                            229
                                        ],
                                        [
                                            300,
                                            206
                                        ],
                                        [
                                            279,
                                            185
                                        ],
                                        [
                                            272,
                                            201
                                        ],
                                        [
                                            296,
                                            210
                                        ],
                                        [
                                            327,
                                            225
                                        ]
                                    ],
                                    "by_values":[
                                        "1100~1200"
                                    ]
                                },
                                {
                                    "values":[
                                        [
                                            539,
                                            372
                                        ],
                                        [
                                            527,
                                            351
                                        ],
                                        [
                                            541,
                                            384
                                        ],
                                        [
                                            547,
                                            379
                                        ],
                                        [
                                            545,
                                            386
                                        ],
                                        [
                                            280,
                                            188
                                        ],
                                        [
                                            285,
                                            192
                                        ],
                                        [
                                            304,
                                            219
                                        ],
                                        [
                                            270,
                                            200
                                        ],
                                        [
                                            297,
                                            198
                                        ],
                                        [
                                            281,
                                            203
                                        ],
                                        [
                                            308,
                                            207
                                        ],
                                        [
                                            290,
                                            207
                                        ],
                                        [
                                            294,
                                            216
                                        ],
                                        [
                                            313,
                                            227
                                        ],
                                        [
                                            296,
                                            197
                                        ],
                                        [
                                            315,
                                            208
                                        ],
                                        [
                                            270,
                                            190
                                        ],
                                        [
                                            309,
                                            222
                                        ]
                                    ],
                                    "by_values":[
                                        "600~700"
                                    ]
                                },
                                {
                                    "values":[
                                        [
                                            509,
                                            332
                                        ],
                                        [
                                            519,
                                            355
                                        ],
                                        [
                                            544,
                                            389
                                        ],
                                        [
                                            536,
                                            386
                                        ],
                                        [
                                            529,
                                            381
                                        ],
                                        [
                                            309,
                                            194
                                        ],
                                        [
                                            276,
                                            192
                                        ],
                                        [
                                            280,
                                            196
                                        ],
                                        [
                                            287,
                                            204
                                        ],
                                        [
                                            281,
                                            197
                                        ],
                                        [
                                            274,
                                            173
                                        ],
                                        [
                                            283,
                                            194
                                        ],
                                        [
                                            307,
                                            209
                                        ],
                                        [
                                            311,
                                            215
                                        ],
                                        [
                                            327,
                                            224
                                        ],
                                        [
                                            275,
                                            188
                                        ],
                                        [
                                            312,
                                            221
                                        ],
                                        [
                                            308,
                                            228
                                        ],
                                        [
                                            280,
                                            196
                                        ]
                                    ],
                                    "by_values":[
                                        "900~1000"
                                    ]
                                }
                            ],
                            "num_rows":14,
                            "total_rows":14,
                            "approx":false,
                            "download_truncated":false,
                            "truncated":false
                        },
                        "rollup_result":{
                            "by_fields":[
                                "event.$Anything.$event_duration"
                            ],
                            "series":[
                                "2021-05-01 00:00:00"
                            ],
                            "rows":[
                                {
                                    "values":[
                                        [
                                            436372,
                                            305962
                                        ]
                                    ],
                                    "by_values":[
                                        "300~400"
                                    ],
                                    "avg_values":[
                                        [
                                            22966.95,
                                            16103.26
                                        ]
                                    ],
                                    "min_values":[
                                        [
                                            15785,
                                            11088
                                        ]
                                    ],
                                    "max_values":[
                                        [
                                            41194,
                                            29068
                                        ]
                                    ]
                                },
                                {
                                    "values":[
                                        [
                                            435863,
                                            305489
                                        ]
                                    ],
                                    "by_values":[
                                        "400~500"
                                    ],
                                    "avg_values":[
                                        [
                                            22940.16,
                                            16078.37
                                        ]
                                    ],
                                    "min_values":[
                                        [
                                            15707,
                                            11093
                                        ]
                                    ],
                                    "max_values":[
                                        [
                                            41209,
                                            29104
                                        ]
                                    ]
                                },
                                {
                                    "values":[
                                        [
                                            435821,
                                            305559
                                        ]
                                    ],
                                    "by_values":[
                                        "200~300"
                                    ],
                                    "avg_values":[
                                        [
                                            22937.95,
                                            16082.05
                                        ]
                                    ],
                                    "min_values":[
                                        [
                                            15576,
                                            10884
                                        ]
                                    ],
                                    "max_values":[
                                        [
                                            40894,
                                            28809
                                        ]
                                    ]
                                },
                                {
                                    "values":[
                                        [
                                            435477,
                                            305402
                                        ]
                                    ],
                                    "by_values":[
                                        "500~600"
                                    ],
                                    "avg_values":[
                                        [
                                            22919.84,
                                            16073.79
                                        ]
                                    ],
                                    "min_values":[
                                        [
                                            15511,
                                            10955
                                        ]
                                    ],
                                    "max_values":[
                                        [
                                            40923,
                                            28867
                                        ]
                                    ]
                                },
                                {
                                    "values":[
                                        [
                                            435389,
                                            305300
                                        ]
                                    ],
                                    "by_values":[
                                        "100~200"
                                    ],
                                    "avg_values":[
                                        [
                                            22915.21,
                                            16068.42
                                        ]
                                    ],
                                    "min_values":[
                                        [
                                            15352,
                                            10913
                                        ]
                                    ],
                                    "max_values":[
                                        [
                                            41177,
                                            29093
                                        ]
                                    ]
                                },
                                {
                                    "values":[
                                        [
                                            178324,
                                            125010
                                        ]
                                    ],
                                    "by_values":[
                                        "0~100"
                                    ],
                                    "avg_values":[
                                        [
                                            9385.47,
                                            6579.47
                                        ]
                                    ],
                                    "min_values":[
                                        [
                                            6433,
                                            4527
                                        ]
                                    ],
                                    "max_values":[
                                        [
                                            16746,
                                            11774
                                        ]
                                    ]
                                },
                                {
                                    "values":[
                                        [
                                            34200,
                                            0
                                        ]
                                    ],
                                    "by_values":[
                                        "5000~INF"
                                    ],
                                    "avg_values":[
                                        [
                                            1800,
                                            0
                                        ]
                                    ],
                                    "min_values":[
                                        [
                                            1800,
                                            0
                                        ]
                                    ],
                                    "max_values":[
                                        [
                                            1800,
                                            0
                                        ]
                                    ]
                                },
                                {
                                    "values":[
                                        [
                                            13689,
                                            0
                                        ]
                                    ],
                                    "by_values":[
                                        null
                                    ],
                                    "avg_values":[
                                        [
                                            720.47,
                                            0
                                        ]
                                    ],
                                    "min_values":[
                                        [
                                            719,
                                            0
                                        ]
                                    ],
                                    "max_values":[
                                        [
                                            731,
                                            0
                                        ]
                                    ]
                                },
                                {
                                    "values":[
                                        [
                                            6962,
                                            4888
                                        ]
                                    ],
                                    "by_values":[
                                        "700~800"
                                    ],
                                    "avg_values":[
                                        [
                                            366.42,
                                            257.26
                                        ]
                                    ],
                                    "min_values":[
                                        [
                                            275,
                                            180
                                        ]
                                    ],
                                    "max_values":[
                                        [
                                            551,
                                            406
                                        ]
                                    ]
                                },
                                {
                                    "values":[
                                        [
                                            6931,
                                            4851
                                        ]
                                    ],
                                    "by_values":[
                                        "800~900"
                                    ],
                                    "avg_values":[
                                        [
                                            364.79,
                                            255.32
                                        ]
                                    ],
                                    "min_values":[
                                        [
                                            271,
                                            191
                                        ]
                                    ],
                                    "max_values":[
                                        [
                                            551,
                                            396
                                        ]
                                    ]
                                },
                                {
                                    "values":[
                                        [
                                            6923,
                                            4906
                                        ]
                                    ],
                                    "by_values":[
                                        "1000~1100"
                                    ],
                                    "avg_values":[
                                        [
                                            364.37,
                                            258.21
                                        ]
                                    ],
                                    "min_values":[
                                        [
                                            270,
                                            191
                                        ]
                                    ],
                                    "max_values":[
                                        [
                                            554,
                                            402
                                        ]
                                    ]
                                },
                                {
                                    "values":[
                                        [
                                            6914,
                                            4832
                                        ]
                                    ],
                                    "by_values":[
                                        "1100~1200"
                                    ],
                                    "avg_values":[
                                        [
                                            363.89,
                                            254.32
                                        ]
                                    ],
                                    "min_values":[
                                        [
                                            272,
                                            185
                                        ]
                                    ],
                                    "max_values":[
                                        [
                                            550,
                                            402
                                        ]
                                    ]
                                },
                                {
                                    "values":[
                                        [
                                            6811,
                                            4746
                                        ]
                                    ],
                                    "by_values":[
                                        "600~700"
                                    ],
                                    "avg_values":[
                                        [
                                            358.47,
                                            249.79
                                        ]
                                    ],
                                    "min_values":[
                                        [
                                            270,
                                            188
                                        ]
                                    ],
                                    "max_values":[
                                        [
                                            547,
                                            386
                                        ]
                                    ]
                                },
                                {
                                    "values":[
                                        [
                                            6747,
                                            4674
                                        ]
                                    ],
                                    "by_values":[
                                        "900~1000"
                                    ],
                                    "avg_values":[
                                        [
                                            355.11,
                                            246
                                        ]
                                    ],
                                    "min_values":[
                                        [
                                            274,
                                            173
                                        ]
                                    ],
                                    "max_values":[
                                        [
                                            544,
                                            389
                                        ]
                                    ]
                                }
                            ],
                            "num_rows":14,
                            "total_rows":14,
                            "approx":false,
                            "download_truncated":false,
                            "truncated":false
                        },
                        "total_detailResult":{
                            "by_fields":[
                                "event.$Anything.$event_duration"
                            ],
                            "series":[
                                "2021-05-01 00:00:00",
                                "2021-05-02 00:00:00",
                                "2021-05-03 00:00:00",
                                "2021-05-04 00:00:00",
                                "2021-05-05 00:00:00",
                                "2021-05-06 00:00:00",
                                "2021-05-07 00:00:00",
                                "2021-05-08 00:00:00",
                                "2021-05-09 00:00:00",
                                "2021-05-10 00:00:00",
                                "2021-05-11 00:00:00",
                                "2021-05-12 00:00:00",
                                "2021-05-13 00:00:00",
                                "2021-05-14 00:00:00",
                                "2021-05-15 00:00:00",
                                "2021-05-16 00:00:00",
                                "2021-05-17 00:00:00",
                                "2021-05-18 00:00:00",
                                "2021-05-19 00:00:00"
                            ],
                            "rows":[
                                {
                                    "values":[
                                        [
                                            224042,
                                            154014
                                        ],
                                        [
                                            220697,
                                            152531
                                        ],
                                        [
                                            226274,
                                            158383
                                        ],
                                        [
                                            227706,
                                            156447
                                        ],
                                        [
                                            227366,
                                            158837
                                        ],
                                        [
                                            93603,
                                            63421
                                        ],
                                        [
                                            94649,
                                            65563
                                        ],
                                        [
                                            88687,
                                            60667
                                        ],
                                        [
                                            95949,
                                            66130
                                        ],
                                        [
                                            96803,
                                            65354
                                        ],
                                        [
                                            94848,
                                            64641
                                        ],
                                        [
                                            95003,
                                            62175
                                        ],
                                        [
                                            96963,
                                            66083
                                        ],
                                        [
                                            96215,
                                            66191
                                        ],
                                        [
                                            96062,
                                            66531
                                        ],
                                        [
                                            92017,
                                            62683
                                        ],
                                        [
                                            94371,
                                            64789
                                        ],
                                        [
                                            89776,
                                            62589
                                        ],
                                        [
                                            95392,
                                            64590
                                        ]
                                    ],
                                    "by_values":[
                                        "$layer_total_reserved_word"
                                    ]
                                }
                            ],
                            "num_rows":1,
                            "total_rows":1,
                            "approx":false,
                            "download_truncated":false,
                            "truncated":false
                        },
                        "total_rollup_result":{
                            "by_fields":[
                                "event.$Anything.$event_duration"
                            ],
                            "series":[
                                "2021-05-01 00:00:00"
                            ],
                            "rows":[
                                {
                                    "values":[
                                        [
                                            2446423,
                                            1681619
                                        ]
                                    ],
                                    "by_values":[
                                        "$layer_total_reserved_word"
                                    ]
                                }
                            ],
                            "num_rows":1,
                            "total_rows":14,
                            "approx":false,
                            "download_truncated":false,
                            "truncated":false
                        },
                        "measure_approx_maps":{
                            "0":false,
                            "1":false
                        },
                        "download_truncated":false,
                        "truncated":false,
                        "is_done":true
                    },
                    {
                        "detailResult":{
                            "by_fields":[
                                "event.$Anything.$event_duration"
                            ],
                            "series":[
                                "2021-04-01 00:00:00",
                                "2021-04-02 00:00:00",
                                "2021-04-03 00:00:00",
                                "2021-04-04 00:00:00",
                                "2021-04-05 00:00:00",
                                "2021-04-06 00:00:00",
                                "2021-04-07 00:00:00",
                                "2021-04-08 00:00:00",
                                "2021-04-09 00:00:00",
                                "2021-04-10 00:00:00",
                                "2021-04-11 00:00:00",
                                "2021-04-12 00:00:00",
                                "2021-04-13 00:00:00",
                                "2021-04-14 00:00:00",
                                "2021-04-15 00:00:00",
                                "2021-04-16 00:00:00",
                                "2021-04-17 00:00:00",
                                "2021-04-18 00:00:00",
                                "2021-04-19 00:00:00"
                            ],
                            "rows":[
                                {
                                    "values":[
                                        [
                                            8374,
                                            5806
                                        ],
                                        [
                                            8033,
                                            5609
                                        ],
                                        [
                                            8299,
                                            5824
                                        ],
                                        [
                                            8191,
                                            5670
                                        ],
                                        [
                                            null,
                                            null
                                        ],
                                        [
                                            null,
                                            null
                                        ],
                                        [
                                            null,
                                            null
                                        ],
                                        [
                                            null,
                                            null
                                        ],
                                        [
                                            null,
                                            null
                                        ],
                                        [
                                            null,
                                            null
                                        ],
                                        [
                                            null,
                                            null
                                        ],
                                        [
                                            null,
                                            null
                                        ],
                                        [
                                            null,
                                            null
                                        ],
                                        [
                                            null,
                                            null
                                        ],
                                        [
                                            null,
                                            null
                                        ],
                                        [
                                            null,
                                            null
                                        ],
                                        [
                                            null,
                                            null
                                        ],
                                        [
                                            null,
                                            null
                                        ],
                                        [
                                            null,
                                            null
                                        ]
                                    ],
                                    "by_values":[
                                        "300~400"
                                    ]
                                },
                                {
                                    "values":[
                                        [
                                            8394,
                                            5735
                                        ],
                                        [
                                            8017,
                                            5481
                                        ],
                                        [
                                            8223,
                                            5815
                                        ],
                                        [
                                            8167,
                                            5647
                                        ],
                                        [
                                            null,
                                            null
                                        ],
                                        [
                                            null,
                                            null
                                        ],
                                        [
                                            null,
                                            null
                                        ],
                                        [
                                            null,
                                            null
                                        ],
                                        [
                                            null,
                                            null
                                        ],
                                        [
                                            null,
                                            null
                                        ],
                                        [
                                            null,
                                            null
                                        ],
                                        [
                                            null,
                                            null
                                        ],
                                        [
                                            null,
                                            null
                                        ],
                                        [
                                            null,
                                            null
                                        ],
                                        [
                                            null,
                                            null
                                        ],
                                        [
                                            null,
                                            null
                                        ],
                                        [
                                            null,
                                            null
                                        ],
                                        [
                                            null,
                                            null
                                        ],
                                        [
                                            null,
                                            null
                                        ]
                                    ],
                                    "by_values":[
                                        "400~500"
                                    ]
                                },
                                {
                                    "values":[
                                        [
                                            8388,
                                            5800
                                        ],
                                        [
                                            8109,
                                            5574
                                        ],
                                        [
                                            8440,
                                            5999
                                        ],
                                        [
                                            8001,
                                            5499
                                        ],
                                        [
                                            null,
                                            null
                                        ],
                                        [
                                            null,
                                            null
                                        ],
                                        [
                                            null,
                                            null
                                        ],
                                        [
                                            null,
                                            null
                                        ],
                                        [
                                            null,
                                            null
                                        ],
                                        [
                                            null,
                                            null
                                        ],
                                        [
                                            null,
                                            null
                                        ],
                                        [
                                            null,
                                            null
                                        ],
                                        [
                                            null,
                                            null
                                        ],
                                        [
                                            null,
                                            null
                                        ],
                                        [
                                            null,
                                            null
                                        ],
                                        [
                                            null,
                                            null
                                        ],
                                        [
                                            null,
                                            null
                                        ],
                                        [
                                            null,
                                            null
                                        ],
                                        [
                                            null,
                                            null
                                        ]
                                    ],
                                    "by_values":[
                                        "200~300"
                                    ]
                                },
                                {
                                    "values":[
                                        [
                                            8612,
                                            5919
                                        ],
                                        [
                                            8099,
                                            5606
                                        ],
                                        [
                                            8355,
                                            5893
                                        ],
                                        [
                                            8123,
                                            5683
                                        ],
                                        [
                                            null,
                                            null
                                        ],
                                        [
                                            null,
                                            null
                                        ],
                                        [
                                            null,
                                            null
                                        ],
                                        [
                                            null,
                                            null
                                        ],
                                        [
                                            null,
                                            null
                                        ],
                                        [
                                            null,
                                            null
                                        ],
                                        [
                                            null,
                                            null
                                        ],
                                        [
                                            null,
                                            null
                                        ],
                                        [
                                            null,
                                            null
                                        ],
                                        [
                                            null,
                                            null
                                        ],
                                        [
                                            null,
                                            null
                                        ],
                                        [
                                            null,
                                            null
                                        ],
                                        [
                                            null,
                                            null
                                        ],
                                        [
                                            null,
                                            null
                                        ],
                                        [
                                            null,
                                            null
                                        ]
                                    ],
                                    "by_values":[
                                        "500~600"
                                    ]
                                },
                                {
                                    "values":[
                                        [
                                            8453,
                                            5784
                                        ],
                                        [
                                            8056,
                                            5495
                                        ],
                                        [
                                            8410,
                                            5912
                                        ],
                                        [
                                            7963,
                                            5534
                                        ],
                                        [
                                            null,
                                            null
                                        ],
                                        [
                                            null,
                                            null
                                        ],
                                        [
                                            null,
                                            null
                                        ],
                                        [
                                            null,
                                            null
                                        ],
                                        [
                                            null,
                                            null
                                        ],
                                        [
                                            null,
                                            null
                                        ],
                                        [
                                            null,
                                            null
                                        ],
                                        [
                                            null,
                                            null
                                        ],
                                        [
                                            null,
                                            null
                                        ],
                                        [
                                            null,
                                            null
                                        ],
                                        [
                                            null,
                                            null
                                        ],
                                        [
                                            null,
                                            null
                                        ],
                                        [
                                            null,
                                            null
                                        ],
                                        [
                                            null,
                                            null
                                        ],
                                        [
                                            null,
                                            null
                                        ]
                                    ],
                                    "by_values":[
                                        "100~200"
                                    ]
                                },
                                {
                                    "values":[
                                        [
                                            4477,
                                            3094
                                        ],
                                        [
                                            4408,
                                            3032
                                        ],
                                        [
                                            4437,
                                            3062
                                        ],
                                        [
                                            4463,
                                            3180
                                        ],
                                        [
                                            null,
                                            null
                                        ],
                                        [
                                            null,
                                            null
                                        ],
                                        [
                                            null,
                                            null
                                        ],
                                        [
                                            null,
                                            null
                                        ],
                                        [
                                            null,
                                            null
                                        ],
                                        [
                                            null,
                                            null
                                        ],
                                        [
                                            null,
                                            null
                                        ],
                                        [
                                            null,
                                            null
                                        ],
                                        [
                                            null,
                                            null
                                        ],
                                        [
                                            null,
                                            null
                                        ],
                                        [
                                            null,
                                            null
                                        ],
                                        [
                                            null,
                                            null
                                        ],
                                        [
                                            null,
                                            null
                                        ],
                                        [
                                            null,
                                            null
                                        ],
                                        [
                                            null,
                                            null
                                        ]
                                    ],
                                    "by_values":[
                                        "0~100"
                                    ]
                                },
                                {
                                    "values":[
                                        [
                                            1800,
                                            0
                                        ],
                                        [
                                            1800,
                                            0
                                        ],
                                        [
                                            1800,
                                            0
                                        ],
                                        [
                                            1800,
                                            0
                                        ],
                                        [
                                            null,
                                            null
                                        ],
                                        [
                                            null,
                                            null
                                        ],
                                        [
                                            null,
                                            null
                                        ],
                                        [
                                            null,
                                            null
                                        ],
                                        [
                                            null,
                                            null
                                        ],
                                        [
                                            null,
                                            null
                                        ],
                                        [
                                            null,
                                            null
                                        ],
                                        [
                                            null,
                                            null
                                        ],
                                        [
                                            null,
                                            null
                                        ],
                                        [
                                            null,
                                            null
                                        ],
                                        [
                                            null,
                                            null
                                        ],
                                        [
                                            null,
                                            null
                                        ],
                                        [
                                            null,
                                            null
                                        ],
                                        [
                                            null,
                                            null
                                        ],
                                        [
                                            null,
                                            null
                                        ]
                                    ],
                                    "by_values":[
                                        "5000~INF"
                                    ]
                                },
                                {
                                    "values":[
                                        [
                                            719,
                                            0
                                        ],
                                        [
                                            719,
                                            0
                                        ],
                                        [
                                            720,
                                            0
                                        ],
                                        [
                                            720,
                                            0
                                        ],
                                        [
                                            null,
                                            null
                                        ],
                                        [
                                            null,
                                            null
                                        ],
                                        [
                                            null,
                                            null
                                        ],
                                        [
                                            null,
                                            null
                                        ],
                                        [
                                            null,
                                            null
                                        ],
                                        [
                                            null,
                                            null
                                        ],
                                        [
                                            null,
                                            null
                                        ],
                                        [
                                            null,
                                            null
                                        ],
                                        [
                                            null,
                                            null
                                        ],
                                        [
                                            null,
                                            null
                                        ],
                                        [
                                            null,
                                            null
                                        ],
                                        [
                                            null,
                                            null
                                        ],
                                        [
                                            null,
                                            null
                                        ],
                                        [
                                            null,
                                            null
                                        ],
                                        [
                                            null,
                                            null
                                        ]
                                    ],
                                    "by_values":[
                                        null
                                    ]
                                },
                                {
                                    "values":[
                                        [
                                            null,
                                            null
                                        ],
                                        [
                                            null,
                                            null
                                        ],
                                        [
                                            null,
                                            null
                                        ],
                                        [
                                            null,
                                            null
                                        ],
                                        [
                                            null,
                                            null
                                        ],
                                        [
                                            null,
                                            null
                                        ],
                                        [
                                            null,
                                            null
                                        ],
                                        [
                                            null,
                                            null
                                        ],
                                        [
                                            null,
                                            null
                                        ],
                                        [
                                            null,
                                            null
                                        ],
                                        [
                                            null,
                                            null
                                        ],
                                        [
                                            null,
                                            null
                                        ],
                                        [
                                            null,
                                            null
                                        ],
                                        [
                                            null,
                                            null
                                        ],
                                        [
                                            null,
                                            null
                                        ],
                                        [
                                            null,
                                            null
                                        ],
                                        [
                                            null,
                                            null
                                        ],
                                        [
                                            null,
                                            null
                                        ],
                                        [
                                            null,
                                            null
                                        ]
                                    ],
                                    "by_values":[
                                        "700~800"
                                    ]
                                },
                                {
                                    "values":[
                                        [
                                            null,
                                            null
                                        ],
                                        [
                                            null,
                                            null
                                        ],
                                        [
                                            null,
                                            null
                                        ],
                                        [
                                            null,
                                            null
                                        ],
                                        [
                                            null,
                                            null
                                        ],
                                        [
                                            null,
                                            null
                                        ],
                                        [
                                            null,
                                            null
                                        ],
                                        [
                                            null,
                                            null
                                        ],
                                        [
                                            null,
                                            null
                                        ],
                                        [
                                            null,
                                            null
                                        ],
                                        [
                                            null,
                                            null
                                        ],
                                        [
                                            null,
                                            null
                                        ],
                                        [
                                            null,
                                            null
                                        ],
                                        [
                                            null,
                                            null
                                        ],
                                        [
                                            null,
                                            null
                                        ],
                                        [
                                            null,
                                            null
                                        ],
                                        [
                                            null,
                                            null
                                        ],
                                        [
                                            null,
                                            null
                                        ],
                                        [
                                            null,
                                            null
                                        ]
                                    ],
                                    "by_values":[
                                        "800~900"
                                    ]
                                },
                                {
                                    "values":[
                                        [
                                            null,
                                            null
                                        ],
                                        [
                                            null,
                                            null
                                        ],
                                        [
                                            null,
                                            null
                                        ],
                                        [
                                            null,
                                            null
                                        ],
                                        [
                                            null,
                                            null
                                        ],
                                        [
                                            null,
                                            null
                                        ],
                                        [
                                            null,
                                            null
                                        ],
                                        [
                                            null,
                                            null
                                        ],
                                        [
                                            null,
                                            null
                                        ],
                                        [
                                            null,
                                            null
                                        ],
                                        [
                                            null,
                                            null
                                        ],
                                        [
                                            null,
                                            null
                                        ],
                                        [
                                            null,
                                            null
                                        ],
                                        [
                                            null,
                                            null
                                        ],
                                        [
                                            null,
                                            null
                                        ],
                                        [
                                            null,
                                            null
                                        ],
                                        [
                                            null,
                                            null
                                        ],
                                        [
                                            null,
                                            null
                                        ],
                                        [
                                            null,
                                            null
                                        ]
                                    ],
                                    "by_values":[
                                        "1000~1100"
                                    ]
                                },
                                {
                                    "values":[
                                        [
                                            null,
                                            null
                                        ],
                                        [
                                            null,
                                            null
                                        ],
                                        [
                                            null,
                                            null
                                        ],
                                        [
                                            null,
                                            null
                                        ],
                                        [
                                            null,
                                            null
                                        ],
                                        [
                                            null,
                                            null
                                        ],
                                        [
                                            null,
                                            null
                                        ],
                                        [
                                            null,
                                            null
                                        ],
                                        [
                                            null,
                                            null
                                        ],
                                        [
                                            null,
                                            null
                                        ],
                                        [
                                            null,
                                            null
                                        ],
                                        [
                                            null,
                                            null
                                        ],
                                        [
                                            null,
                                            null
                                        ],
                                        [
                                            null,
                                            null
                                        ],
                                        [
                                            null,
                                            null
                                        ],
                                        [
                                            null,
                                            null
                                        ],
                                        [
                                            null,
                                            null
                                        ],
                                        [
                                            null,
                                            null
                                        ],
                                        [
                                            null,
                                            null
                                        ]
                                    ],
                                    "by_values":[
                                        "1100~1200"
                                    ]
                                },
                                {
                                    "values":[
                                        [
                                            null,
                                            null
                                        ],
                                        [
                                            null,
                                            null
                                        ],
                                        [
                                            null,
                                            null
                                        ],
                                        [
                                            null,
                                            null
                                        ],
                                        [
                                            null,
                                            null
                                        ],
                                        [
                                            null,
                                            null
                                        ],
                                        [
                                            null,
                                            null
                                        ],
                                        [
                                            null,
                                            null
                                        ],
                                        [
                                            null,
                                            null
                                        ],
                                        [
                                            null,
                                            null
                                        ],
                                        [
                                            null,
                                            null
                                        ],
                                        [
                                            null,
                                            null
                                        ],
                                        [
                                            null,
                                            null
                                        ],
                                        [
                                            null,
                                            null
                                        ],
                                        [
                                            null,
                                            null
                                        ],
                                        [
                                            null,
                                            null
                                        ],
                                        [
                                            null,
                                            null
                                        ],
                                        [
                                            null,
                                            null
                                        ],
                                        [
                                            null,
                                            null
                                        ]
                                    ],
                                    "by_values":[
                                        "600~700"
                                    ]
                                },
                                {
                                    "values":[
                                        [
                                            null,
                                            null
                                        ],
                                        [
                                            null,
                                            null
                                        ],
                                        [
                                            null,
                                            null
                                        ],
                                        [
                                            null,
                                            null
                                        ],
                                        [
                                            null,
                                            null
                                        ],
                                        [
                                            null,
                                            null
                                        ],
                                        [
                                            null,
                                            null
                                        ],
                                        [
                                            null,
                                            null
                                        ],
                                        [
                                            null,
                                            null
                                        ],
                                        [
                                            null,
                                            null
                                        ],
                                        [
                                            null,
                                            null
                                        ],
                                        [
                                            null,
                                            null
                                        ],
                                        [
                                            null,
                                            null
                                        ],
                                        [
                                            null,
                                            null
                                        ],
                                        [
                                            null,
                                            null
                                        ],
                                        [
                                            null,
                                            null
                                        ],
                                        [
                                            null,
                                            null
                                        ],
                                        [
                                            null,
                                            null
                                        ],
                                        [
                                            null,
                                            null
                                        ]
                                    ],
                                    "by_values":[
                                        "900~1000"
                                    ]
                                }
                            ],
                            "num_rows":14,
                            "total_rows":14,
                            "approx":false,
                            "download_truncated":false,
                            "truncated":false
                        },
                        "rollup_result":{
                            "by_fields":[
                                "event.$Anything.$event_duration"
                            ],
                            "series":[
                                "2021-04-01 00:00:00"
                            ],
                            "rows":[
                                {
                                    "values":[
                                        [
                                            32897,
                                            22909
                                        ]
                                    ],
                                    "by_values":[
                                        "300~400"
                                    ],
                                    "avg_values":[
                                        [
                                            1731.42,
                                            1205.74
                                        ]
                                    ],
                                    "min_values":[
                                        [
                                            8033,
                                            5609
                                        ]
                                    ],
                                    "max_values":[
                                        [
                                            8374,
                                            5824
                                        ]
                                    ]
                                },
                                {
                                    "values":[
                                        [
                                            32801,
                                            22678
                                        ]
                                    ],
                                    "by_values":[
                                        "400~500"
                                    ],
                                    "avg_values":[
                                        [
                                            1726.37,
                                            1193.58
                                        ]
                                    ],
                                    "min_values":[
                                        [
                                            8017,
                                            5481
                                        ]
                                    ],
                                    "max_values":[
                                        [
                                            8394,
                                            5815
                                        ]
                                    ]
                                },
                                {
                                    "values":[
                                        [
                                            32938,
                                            22872
                                        ]
                                    ],
                                    "by_values":[
                                        "200~300"
                                    ],
                                    "avg_values":[
                                        [
                                            1733.58,
                                            1203.79
                                        ]
                                    ],
                                    "min_values":[
                                        [
                                            8001,
                                            5499
                                        ]
                                    ],
                                    "max_values":[
                                        [
                                            8440,
                                            5999
                                        ]
                                    ]
                                },
                                {
                                    "values":[
                                        [
                                            33189,
                                            23101
                                        ]
                                    ],
                                    "by_values":[
                                        "500~600"
                                    ],
                                    "avg_values":[
                                        [
                                            1746.79,
                                            1215.84
                                        ]
                                    ],
                                    "min_values":[
                                        [
                                            8099,
                                            5606
                                        ]
                                    ],
                                    "max_values":[
                                        [
                                            8612,
                                            5919
                                        ]
                                    ]
                                },
                                {
                                    "values":[
                                        [
                                            32882,
                                            22725
                                        ]
                                    ],
                                    "by_values":[
                                        "100~200"
                                    ],
                                    "avg_values":[
                                        [
                                            1730.63,
                                            1196.05
                                        ]
                                    ],
                                    "min_values":[
                                        [
                                            7963,
                                            5495
                                        ]
                                    ],
                                    "max_values":[
                                        [
                                            8453,
                                            5912
                                        ]
                                    ]
                                },
                                {
                                    "values":[
                                        [
                                            17785,
                                            12368
                                        ]
                                    ],
                                    "by_values":[
                                        "0~100"
                                    ],
                                    "avg_values":[
                                        [
                                            936.05,
                                            650.95
                                        ]
                                    ],
                                    "min_values":[
                                        [
                                            4408,
                                            3032
                                        ]
                                    ],
                                    "max_values":[
                                        [
                                            4477,
                                            3180
                                        ]
                                    ]
                                },
                                {
                                    "values":[
                                        [
                                            7200,
                                            0
                                        ]
                                    ],
                                    "by_values":[
                                        "5000~INF"
                                    ],
                                    "avg_values":[
                                        [
                                            378.95,
                                            0
                                        ]
                                    ],
                                    "min_values":[
                                        [
                                            1800,
                                            0
                                        ]
                                    ],
                                    "max_values":[
                                        [
                                            1800,
                                            0
                                        ]
                                    ]
                                },
                                {
                                    "values":[
                                        [
                                            2878,
                                            0
                                        ]
                                    ],
                                    "by_values":[
                                        null
                                    ],
                                    "avg_values":[
                                        [
                                            151.47,
                                            0
                                        ]
                                    ],
                                    "min_values":[
                                        [
                                            719,
                                            0
                                        ]
                                    ],
                                    "max_values":[
                                        [
                                            720,
                                            0
                                        ]
                                    ]
                                },
                                {
                                    "values":[
                                        [
                                            null,
                                            null
                                        ]
                                    ],
                                    "by_values":[
                                        "700~800"
                                    ],
                                    "avg_values":[
                                        [
                                            null,
                                            null
                                        ]
                                    ],
                                    "min_values":[
                                        [
                                            null,
                                            null
                                        ]
                                    ],
                                    "max_values":[
                                        [
                                            null,
                                            null
                                        ]
                                    ]
                                },
                                {
                                    "values":[
                                        [
                                            null,
                                            null
                                        ]
                                    ],
                                    "by_values":[
                                        "800~900"
                                    ],
                                    "avg_values":[
                                        [
                                            null,
                                            null
                                        ]
                                    ],
                                    "min_values":[
                                        [
                                            null,
                                            null
                                        ]
                                    ],
                                    "max_values":[
                                        [
                                            null,
                                            null
                                        ]
                                    ]
                                },
                                {
                                    "values":[
                                        [
                                            null,
                                            null
                                        ]
                                    ],
                                    "by_values":[
                                        "1000~1100"
                                    ],
                                    "avg_values":[
                                        [
                                            null,
                                            null
                                        ]
                                    ],
                                    "min_values":[
                                        [
                                            null,
                                            null
                                        ]
                                    ],
                                    "max_values":[
                                        [
                                            null,
                                            null
                                        ]
                                    ]
                                },
                                {
                                    "values":[
                                        [
                                            null,
                                            null
                                        ]
                                    ],
                                    "by_values":[
                                        "1100~1200"
                                    ],
                                    "avg_values":[
                                        [
                                            null,
                                            null
                                        ]
                                    ],
                                    "min_values":[
                                        [
                                            null,
                                            null
                                        ]
                                    ],
                                    "max_values":[
                                        [
                                            null,
                                            null
                                        ]
                                    ]
                                },
                                {
                                    "values":[
                                        [
                                            null,
                                            null
                                        ]
                                    ],
                                    "by_values":[
                                        "600~700"
                                    ],
                                    "avg_values":[
                                        [
                                            null,
                                            null
                                        ]
                                    ],
                                    "min_values":[
                                        [
                                            null,
                                            null
                                        ]
                                    ],
                                    "max_values":[
                                        [
                                            null,
                                            null
                                        ]
                                    ]
                                },
                                {
                                    "values":[
                                        [
                                            null,
                                            null
                                        ]
                                    ],
                                    "by_values":[
                                        "900~1000"
                                    ],
                                    "avg_values":[
                                        [
                                            null,
                                            null
                                        ]
                                    ],
                                    "min_values":[
                                        [
                                            null,
                                            null
                                        ]
                                    ],
                                    "max_values":[
                                        [
                                            null,
                                            null
                                        ]
                                    ]
                                }
                            ],
                            "num_rows":14,
                            "total_rows":14,
                            "approx":false,
                            "download_truncated":false,
                            "truncated":false
                        },
                        "total_detailResult":{
                            "by_fields":[
                                "event.$Anything.$event_duration"
                            ],
                            "series":[
                                "2021-04-01 00:00:00",
                                "2021-04-02 00:00:00",
                                "2021-04-03 00:00:00",
                                "2021-04-04 00:00:00",
                                "2021-04-05 00:00:00",
                                "2021-04-06 00:00:00",
                                "2021-04-07 00:00:00",
                                "2021-04-08 00:00:00",
                                "2021-04-09 00:00:00",
                                "2021-04-10 00:00:00",
                                "2021-04-11 00:00:00",
                                "2021-04-12 00:00:00",
                                "2021-04-13 00:00:00",
                                "2021-04-14 00:00:00",
                                "2021-04-15 00:00:00",
                                "2021-04-16 00:00:00",
                                "2021-04-17 00:00:00",
                                "2021-04-18 00:00:00",
                                "2021-04-19 00:00:00"
                            ],
                            "rows":[
                                {
                                    "values":[
                                        [
                                            49217,
                                            32138
                                        ],
                                        [
                                            47241,
                                            30797
                                        ],
                                        [
                                            48684,
                                            32505
                                        ],
                                        [
                                            47428,
                                            31213
                                        ],
                                        [
                                            null,
                                            null
                                        ],
                                        [
                                            null,
                                            null
                                        ],
                                        [
                                            null,
                                            null
                                        ],
                                        [
                                            null,
                                            null
                                        ],
                                        [
                                            null,
                                            null
                                        ],
                                        [
                                            null,
                                            null
                                        ],
                                        [
                                            null,
                                            null
                                        ],
                                        [
                                            null,
                                            null
                                        ],
                                        [
                                            null,
                                            null
                                        ],
                                        [
                                            null,
                                            null
                                        ],
                                        [
                                            null,
                                            null
                                        ],
                                        [
                                            null,
                                            null
                                        ],
                                        [
                                            null,
                                            null
                                        ],
                                        [
                                            null,
                                            null
                                        ],
                                        [
                                            null,
                                            null
                                        ]
                                    ],
                                    "by_values":[
                                        "$layer_total_reserved_word"
                                    ]
                                }
                            ],
                            "num_rows":1,
                            "total_rows":1,
                            "approx":false,
                            "download_truncated":false,
                            "truncated":false
                        },
                        "total_rollup_result":{
                            "by_fields":[
                                "event.$Anything.$event_duration"
                            ],
                            "series":[
                                "2021-04-01 00:00:00"
                            ],
                            "rows":[
                                {
                                    "values":[
                                        [
                                            192570,
                                            126653
                                        ]
                                    ],
                                    "by_values":[
                                        "$layer_total_reserved_word"
                                    ]
                                }
                            ],
                            "num_rows":1,
                            "total_rows":14,
                            "approx":false,
                            "download_truncated":false,
                            "truncated":false
                        },
                        "measure_approx_maps":{
                            "0":false,
                            "1":false
                        },
                        "download_truncated":false,
                        "truncated":false,
                        "is_done":true
                    }
                ],
            }
        },
        methods: {
            // 折线图、柱状图
            chart_init(queryJson, res, type) {
                let {messures, compare_from_date} = queryJson;
                if (compare_from_date) {
                    this.chart_compare_line(queryJson, res, type)
                } else {
                    // 测试数据
                    res = this.lineData[0];

                    let {series: xAxisArr, rows} = res.detailResult;

                    // 前n项
                    let {limit} = this.dialog_form;
                    if (limit && limit < rows.length) {
                        rows = rows.slice(0, limit);
                    }

                    this.num_init(queryJson, res);
                    // x轴
                    xAxisArr = xAxisArr.map(item => {
                        return this.$moment(item).format("M-D");
                    });
                    this.seriesArr = [];
                    this.handleLineData(messures, rows, xAxisArr, type);
                    this.option = {
                        backgroundColor: "#fff",
                        title: {
                            text: "",
                            textStyle: {
                                fontSize: 12,
                                fontWeight: 400
                            },
                            left: "center",
                            top: "5%"
                        },
                        legend: {
                            data: this.legendList,
                            show: true,
                            type: "scroll",
                            formatter: (params) => {
                                let nameArr = params.split(" ");
                                let _index = nameArr[0].charAt(nameArr[0].length - 1);
                                let measureIndex = String.fromCharCode( 65 + Number(_index));
                                return measureIndex + " " + nameArr.slice(1).join(" ");
                            }
                        },
                        tooltip: {
                            trigger: "axis",
                            backgroundColor: "#001529",
                            textStyle: {
                                color: "#fff"
                            },
                            padding: [10, 10],
                            extraCssText: "box-shadow: 1px 0 2px 0 rgba(163,163,163,0.5)",
                            formatter: (params) => {
                                let resHtml = "";
                                params.map(param => {
                                    let {seriesName, data, color} = param;
                                    let nameArr = seriesName ? seriesName.split(" ") : [];
                                    let _index = nameArr[0].charAt(nameArr[0].length - 1);
                                    let name = messures[_index].name + " " + nameArr.slice(1).join("");
                                    let measureIndex = String.fromCharCode( 65 + Number(_index));
                                    resHtml += `<div class="tooltip-content">
                                <div class="name">
                                <span class="name-index" style="background-color: ${color}">${measureIndex}</span>${name}</div>
                                <div class="value">${data.value || "--"}</div>
                                </div>`
                                });
                                return resHtml;
                            }
                        },
                        grid: {
                            left: "10%",
                            top: "10%",
                            right: "5%",
                        },
                        xAxis: {
                            type: "category",
                            boundaryGap: type === "line" ? false : true,
                            data: xAxisArr
                        },
                        yAxis: {
                            type: "value",
                        },
                        series: this.seriesArr
                    };
                    this.myChart.setOption(this.option, true);
                    this.myChart.resize();
                }
            },
            chart_compare_line(queryJson, res, type) {
                res = this.tableCompareData;

                let xAxisArr = [];
                if (res.length > 1) {
                    // x轴
                    let res_0 = res[0], res_1 = res[1];
                    let series_0 = res_0.detailResult.series;
                    let series_1 = res_1.detailResult.series;
                    series_0 = this.handle_xAxisArr(series_0);
                    series_1 = this.handle_xAxisArr(series_1);
                    this.num_init(queryJson, res_0);

                    let {messures} = queryJson;

                    // y轴
                    this.seriesArr = [];
                    this.legendList = [];
                    let measureRes = [];
                    res.map((item) => {
                        let series = this.handle_xAxisArr(item.detailResult.series);
                        let measureObj = this.handleLineData(messures, item.detailResult.rows, series, type);
                        measureRes.push(measureObj);
                    });

                    series_0.map((series, i) => {
                        xAxisArr.push(series_0[i] + "/" + series_1[i]);
                    });
                    this.option = {
                        backgroundColor: "#fff",
                        legend: {
                            data: this.legendList,
                            show: true,
                            type: "scroll",
                            formatter: (params) => {
                                let nameArr = params.split(" ");
                                let _index = nameArr[0].charAt(nameArr[0].length - 1);
                                let measureIndex = String.fromCharCode( 65 + Number(_index));
                                return measureIndex + " " + nameArr.slice(1).join(" ");
                            }
                        },
                        title: {
                            text: "",
                            textStyle: {
                                fontSize: 12,
                                fontWeight: 400
                            },
                            left: "center",
                            top: "5%"
                        },
                        tooltip: {
                            trigger: "axis",
                            backgroundColor: "#001529",
                            textStyle: {
                                color: "#fff"
                            },
                            padding: [10, 10],
                            extraCssText: "box-shadow: 1px 0 2px 0 rgba(163,163,163,0.5)",
                            formatter: (params) => {
                                // console.log(params);
                                let obj = {}, axisValueArr = params[0].axisValue.split("/");
                                params.map(param => {
                                    let {seriesName, data, color} = param;
                                    if(!obj[seriesName]) {
                                        obj[seriesName] = {};
                                    }
                                    if(data.name === axisValueArr[0]) {
                                        obj[seriesName].firstDate = data;
                                    } else if(data.name === axisValueArr[1]) {
                                        obj[seriesName].secondDate = data;
                                    }
                                    obj[seriesName].color = color;
                                });
                                let resHtml = `<div class="tooltip-content"><div class="name">指标及分组值</div><div class="value">${axisValueArr[0]}</div><div class="value">${axisValueArr[1]}</div></div>`
                                for(let i in obj) {
                                    let nameArr = i ? i.split(" ") : [];
                                    let _index = nameArr[0].charAt(nameArr[0].length - 1);
                                    let name = messures[_index].name + " " + nameArr.slice(1).join("");
                                    let measureIndex = String.fromCharCode( 65 + Number(_index));
                                    resHtml += `<div class="tooltip-content">
                            <div class="name">
                                <span class="name-index" style="background-color: ${obj[i].color}">${measureIndex}</span>${name}
                            </div>
                            <div class="value">${obj[i].firstDate.value || "--"}</div>
                            <div class="value">${obj[i].secondDate.value || "--"}</div>
                            </div>`
                                }

                                return resHtml;
                            }
                        },
                        grid: {
                            left: "10%",
                            top: "10%",
                            right: "5%",
                        },
                        xAxis: {
                            type: "category",
                            boundaryGap: type === "line" ? false : true,
                            data: xAxisArr
                        },
                        yAxis: {
                            type: "value",
                        },
                        series: this.seriesArr
                    };
                    this.myChart.setOption(this.option, true);
                    this.myChart.resize();
                }
            },
            handleLineData(messures, rows, series, type) {
                let  measureObj = {};

                for (let i = 0; i < rows.length; i++) {
                    let obj = {}, data = [];
                    let {by_values, values} = rows[i];
                    let name = by_values.join(" ");

                    messures.map((measure, j) => {
                        let event_name ="measure_" + j;
                        if (!measureObj[event_name]) {
                            measureObj[event_name] = {};
                        }

                        obj = {
                            type,
                            stack: `measure_${j}`,
                            name: `measure_${j} ` + name
                        };
                        this.legendList.push({
                            name: `measure_${j} ` + name
                        });
                        if (!measureObj[event_name][name]) {
                            measureObj[event_name][name] = [];
                        }
                        data = [];
                        values.map((value, k) => {
                            data.push({
                                value: value[j],
                                name: series[k]
                            });
                            measureObj[event_name][name].push(value[j]);

                        });
                        obj.data = data;
                        this.seriesArr.push(obj);
                    })

                }
                return measureObj;
            },
        }
    }
</script>

<style scoped>

</style>
